package com.ywgt.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dts_user_formid")
@ApiModel(value="UserFormid对象", description="")
public class UserFormid implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "缓存的FormId")
    @TableField("formId")
    private String formId;

    @ApiModelProperty(value = "是FormId还是prepayId")
    private Boolean isprepay;

    @ApiModelProperty(value = "可用次数，fromId为1，prepay为3，用1次减1")
    @TableField("useAmount")
    private Integer useAmount;

    @ApiModelProperty(value = "过期时间，腾讯规定为7天")
    private Date expireTime;

    @ApiModelProperty(value = "微信登录openid")
    @TableField("openId")
    private String openId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date addTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
